package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 供应商账单子表
 * </p>
 *
 * @author sy
 * @since 2023-12-29
 */
@Getter
@Setter
@TableName("dragon_vendor_bill_son")
public class VendorBillSon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 外发主表id
     */
    private Integer schedulingOutId;

    /**
     * 供应商id
     */
    private Integer vendorId;

    /**
     * 外发金额
     */
    private Double outMoney;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 供应商账单id
     */
    private Integer vendorBillId;

    /**
     * 是否生成供应商账单 0否 1是
     */
    private Integer billStatus;

    /**
     * 供应商名称
     */
    @TableField(exist = false)
    private String vendorName;


}
